﻿using EnvDTE;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.TextManager.Interop;
using Microsoft.VisualStudio.VCCodeModel;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Text;
using System;

namespace GordonKristan.codeclean
{
	/// <summary>
	/// Base class for all text manipulating objects.
	/// Provides function to interface with the IDE so
	/// the modules only need to worry about the text.
	/// </summary>
	abstract class TextEditModule
	{
		protected String document;

		/// <summary>
		/// Default constructor. Called by child classes;
		/// </summary>
		/// <param name="aDoc"></param>
		protected TextEditModule(String aDoc)
		{
			document = aDoc;
		}

		/// <summary>
		/// Method to get resulting text.
		/// </summary>
		/// <returns>Styled text string</returns>
		public String getText()
		{
			return document;
		}
	}
}
